package cn.well.cloud.modular.service.impl;

import cn.well.cloud.modular.model.NoticeLog;
import cn.well.cloud.modular.mapper.NoticeLogMapper;
import cn.well.cloud.modular.model.UserInfo;
import cn.well.cloud.modular.service.INoticeLogService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程通知记录 服务实现类
 * </p>
 *
 * @author jiawei
 * @since 2020-06-04
 */
@Service
public class NoticeLogServiceImpl extends ServiceImpl<NoticeLogMapper, NoticeLog> implements INoticeLogService {

    @Override
    public IPage<Map<String, Object>> pageMapsInfos(Page page, String courseInfoId, String wxType,String searchName) {
        return this.baseMapper.pageMapsInfos(page,courseInfoId,wxType,searchName);
    }

    @Override
    public List<UserInfo> getUnUserNoticeLogMap(Long courseInfoId, String wxType, String templateId) {
        return this.baseMapper.getUnUserNoticeLogMap(courseInfoId,wxType,templateId);
    }
}
